Package com.cisco.pt.mu
Class MUConOutMessage
java.lang.Object
com.cisco.pt.impl.LTVImpl
com.cisco.pt.mu.MultiUserMessage
com.cisco.pt.mu.MUConOutMessage
- All Implemented Interfaces:
LTV
This is a name update message from PT.
-
Field Summary
FieldsFields inherited from class com.cisco.pt.mu.MultiUserMessage
ePtmpMUMsg, PTMP_TYPE_MUCONIN, PTMP_TYPE_MUCONOUT, PTMP_TYPE_MULINKUPDATE, PTMP_TYPE_MULINKUPDATESTATUS, PTMP_TYPE_MUNAMEUPDATE, PTMP_TYPE_MUNEGOREQ, PTMP_TYPE_MUNEGORESP, PTMP_TYPE_MUPDU, PTMP_TYPE_MUPORTADV, PTMP_TYPE_MUSAVENETREQ, PTMP_TYPE_MUSAVENETRESPFields inherited from interface com.cisco.pt.LTV
AUTH_CHALLENGE_TYPE, AUTH_REQUEST_TYPE, AUTH_RESPONSE_TYPE, AUTH_STATUS_TYPE, DISCONNECT_MESSAGE_TYPE, IPC_ERROR_TYPE, IPC_EVENT_SUBSCRIPTION_TYPE, IPC_EVENT_TYPE, IPC_MESSAGE_TYPE, IPC_RESPONSE_TYPE, KEEP_ALIVE_MESSAGE_TYPE, MULTI_USER_MESSAGE_TYPE, NEGOTIATION_MESSAGE_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMUConOutMessage(int linkId, int special, String string) This function creates a new console input message for the MU protocol. -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) Serializes the message into a PTBuffer.intGets the linkId from the messagestatic MUConOutMessagegetMessage(EncodedBuffer buffer) A deserialization function that creates a new message from a PTBuffer object.intGets the special attributesGets the output string from the messagevoidsetLinkId(int linkId) Sets the linkIdvoidsetSpecial(int special) Sets the special attributesvoidSets the output string from the consoletoString()Converts this message into a string for debugging purposesMethods inherited from class com.cisco.pt.mu.MultiUserMessage
isConInput, isConOutput, isLinkUpdate, isLinkUpdateStatus, isMuMessage, isPDU, isPortAdv, isSaveRequest, isSaveResponseMethods inherited from class com.cisco.pt.impl.LTVImpl
getLength, getMessageId, getNextMessageId, getType, getValue, hasResponse, isEvent, isResponse, setLength, setType, setValue
-
Field Details
-
linkId
public int linkId -
special
public int special -
string
-
-
Constructor Details
-
MUConOutMessage
This function creates a new console input message for the MU protocol.- Parameters:
linkId- The link the message is onspecial- Any special processing codesstring- The output message
-
MUConOutMessage
public MUConOutMessage()
-
-
Method Details
-
setLinkId
public void setLinkId(int linkId) Sets the linkId- Parameters:
linkId- The linkId associated with the output
-
getLinkId
public int getLinkId()Gets the linkId from the message- Returns:
- The linkId contained in the message
-
setSpecial
public void setSpecial(int special) Sets the special attributes- Parameters:
special- The special attributes for this string
-
getSpecial
public int getSpecial()Gets the special attributes- Returns:
- The special attributes for this string
-
setString
Sets the output string from the console- Parameters:
string- The output string from the console
-
getString
Gets the output string from the message- Returns:
- The string for the console output
-
getMessage
A deserialization function that creates a new message from a PTBuffer object.- Parameters:
buffer- The PTBuffer to read from- Returns:
- A new instance of a MUConOutMessage class read from the buffer
-
encodeTypeAndPayload
Serializes the message into a PTBuffer.- Specified by:
encodeTypeAndPayloadin interfaceLTV- Overrides:
encodeTypeAndPayloadin classLTVImpl- Parameters:
buffer- The PTBuffer to write the message into
-
toString
Converts this message into a string for debugging purposes- Overrides:
toStringin classMultiUserMessage- Returns:
- A string representation of this message
-